package com.dev.controller;

import com.dev.pojo.Emp;
import com.dev.service.IEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/***
 * @author : fujc-dev@qq.com
 * @slogan : talk is cheap, show me the code. salute the future!
 */
@RestController
public class EmpController {


    @Autowired
    IEmpService empService;

    @RequestMapping("test")
    public  List<Emp> test(){
        List<Emp> emps = empService.selectEmp();
        return emps;
    }
}
